package kr.hkit.powerjava.chapter04;

import java.util.Scanner;

public class Programming4 {
	
	public static void main(String[] args) {

		Scanner input = new Scanner(System.in);

		System.out.print("화씨 온도를 입력하시오: ");
		double fahrenheit = input.nextDouble(); //화씨
		
		double celsius = (fahrenheit - 32) * 5 / 9; //섭씨
		System.out.println("화씨 온도: " + fahrenheit + "℉, 섭씨 온도: " + celsius + "℃");
	}
	
}

